<template>
  <!-- vue3.0 可以在template写多个根元素 -->
  <img alt="Vue logo" src="./assets/logo.png" />
  <h1>{{ msg }}</h1>
  <button @click="changeMsg">点击</button>
</template>

<script>
// vue3.0 下边可以照常写vue2.0 的代码(向下兼容)

export default {
  name: 'App',
  data () {
    return {
      msg: 'hi vue3,我来了！'
    }
  },
  methods: {
    changeMsg () {
      this.msg = 'hi react!'
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
